/* ============================================================
   ОСНОВНЫЕ СТИЛИ СТРАНИЦЫ ТАРИФОВ
   ============================================================ */
.tariffs-page {
  padding: 38px 0;
  background: linear-gradient(180deg, #f4f8ff 0%, #eefaf3 100%);
  min-height: 100vh;
  --font-title: "Cabinet Grotesk", "Inter", sans-serif;
  --font-body: "Satoshi", "Arial", sans-serif;
}

.tariffs-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ЗАГОЛОВОК СТРАНИЦЫ ===== */
.tariffs-hero {
  text-align: center;
  margin-bottom: 44px;
}

.tariffs-title {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  color: #112033;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  font-family: var(--font-title);
}

.tariffs-lead {
  font-size: 16px;
  color: #567086;
  margin: 0;
  font-weight: 500;
  font-family: var(--font-body);
}

/* ===== СЕКЦИИ ТАРИФОВ ===== */
.tariffs-section {
  margin-bottom: 54px;
}

.tariffs-section-header {
  margin-bottom: 28px;
  text-align: center;
}

/* ===== ЗАГОЛОВКИ В ОВАЛАХ (СПЕЦИАЛЬНЫЕ ПРЕДЛОЖЕНИЯ, ТАРИФЫ ДЛЯ ДОМА И Т.Д.) ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 20px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 122, 255, 0.12);
  color: #007aff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "Cabinet Grotesk", "Inter", sans-serif;
  text-align: center;
  width: auto;
}

.section-label--promo {
  color: #009846;
  border-color: rgba(0, 152, 70, 0.12);
}

.section-label--blue {
  color: #007aff;
}

.section-label--green {
  color: #009846;
}

.section-label--dark {
  color: #16283d;
  border-color: rgba(10, 34, 60, 0.12);
}

.section-title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.08;
  color: #13263c;
  margin: 0;
  letter-spacing: -0.04em;
  font-family: var(--font-title);
}

/* вариант заголовка в "таблетке" */
.section-title--pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(0, 168, 90, 0.12); /* мягкий зелёный фон */
  color: #009846;                     /* фирменный зелёный текст */
  border: 1px solid rgba(0, 168, 90, 0.25);
  font-size: 18px;                    /* чуть меньше, чем обычный h2 */
  font-weight: 700;
}

.tariff-abs {
  color:#5D6D7E
}

/* выравнивание заголовка по центру блока */
.tariffs-section-header {
  text-align: center;
}

/* ===== GRID ТАРИФОВ ===== */
.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 32px;
}

/* ===== КАРТОЧКА ТАРИФА ===== */
.tariff-card {
  position: relative;
  padding: 24px 24px 28px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tariff-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.tariff-card--accent {
  border: 2px solid rgba(0, 117, 255, 0.3);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  transform: translateY(-4px);
}

.tariff-card--accent:hover {
  transform: translateY(-10px);
}

.tariff-card--promo {
  background: linear-gradient(135deg, rgba(0, 168, 90, 0.04), #ffffff);
  border: 1px solid rgba(0, 168, 90, 0.08);
}

/* ===== БЕЙДЖ ===== */
.tariff-badge {
  position: absolute;
  top: 16px;
  right: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tariff-badge--hit { background: #ff8a00; }
.tariff-badge--new { background: #00a85a; }
.tariff-badge--eco { background: #f97316; }

/* ===== ЗАГОЛОВОК ТАРИФА ===== */
.tariff-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 4px;
  font-family: var(--font-title);
}

.tariff-name {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  font-family: var(--font-title);
}

/* ===== ПОДЗАГОЛОВОК ===== */
.tariff-subtitle {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
  font-family: var(--font-body);
}

/* ===== СПИСОК ХАРАКТЕРИСТИК ===== */
.tariff-features {
  list-style: none;
  margin: 8px 0 4px;
  padding: 0;
}

.tariff-features li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: #1f2933;
  margin-bottom: 6px;
  font-family: var(--font-body);
  line-height: 1.4;
}

.tariff-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #0075ff;
  font-size: 18px;
  font-weight: 700;
}

/* ===== БЛОК С ЦЕНАМИ ===== */
.tariff-price-block {
  margin-top: 8px;
  margin-bottom: 12px;
}

.tariff-price {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  font-family: var(--font-title);
}

.tariff-price-old {
  font-size: 14px;
  color: #9ca3af;
  text-decoration: line-through;
  margin-left: 8px;
  font-family: var(--font-body);
}

/* ===== КНОПКА "ПОДКЛЮЧИТЬ" ===== */
.tariff-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  border-radius: 999px;
  background: #0075ff;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  box-shadow: 0 10px 24px rgba(0, 117, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: var(--font-title);
}

.tariff-btn:hover {
  background: #0066e6;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 117, 255, 0.4);
}

.tariff-btn:active {
  transform: translateY(0);
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 32, 49, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #ffffff;
  border-radius: 24px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  position: relative;
  animation: slideUp 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(32px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: #f0f4f8;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.modal-close:hover {
  background: #e0e6ed;
  transform: scale(1.08);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  fill: #567086;
}

.modal-header {
  padding: 30px 30px 20px;
  background: linear-gradient(135deg, #007aff 0%, #009846 100%);
  color: #ffffff;
  position: relative;
  border-radius: 24px 24px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-family: var(--font-title);
}

.modal-header p {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  opacity: 0.9;
  font-family: var(--font-body);
}

.modal-body {
  padding: 26px 30px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group--checkbox {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #16283d;
  font-family: var(--font-body);
}

.form-input,
.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e6ed;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #16283d;
  background: #f9fbfd;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  font-family: var(--font-body);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #007aff;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.form-input::placeholder {
  color: #8a9caf;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23567086'%3E%3Cpath d='M12 16L6 10h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-select option {
  background: #ffffff;
  color: #16283d;
  padding: 12px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-custom {
  width: 20px;
  min-width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #fff;
  position: relative;
  margin-top: 2px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.checkbox-input:checked + .checkbox-custom {
  background: #0075ff;
  border-color: #0075ff;
}

.checkbox-input:checked + .checkbox-custom::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text {
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
  font-family: var(--font-body);
}

.checkbox-text a {
  color: #0075ff;
  text-decoration: none;
}

.checkbox-text a:hover {
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  padding: 15px 22px;
  background: linear-gradient(135deg, #007aff 0%, #006fe8 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 12px 28px rgba(0, 122, 255, 0.22);
  font-family: var(--font-title);
}

.submit-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #006fe8 0%, #0065d4 100%);
  box-shadow: 0 16px 36px rgba(0, 122, 255, 0.3);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.modal-footer {
  padding: 14px 30px 24px;
  text-align: center;
}

.modal-footer p {
  margin: 0;
  font-size: 12px;
  color: #8a9caf;
  font-weight: 500;
  font-family: var(--font-body);
}

/* ============================================================
   ДОПОЛНИТЕЛЬНЫЕ УСЛУГИ
   ============================================================ */
.extra-services {
  padding: 60px 0;
}

.extra-services__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.extra-services__header {
  text-align: center;
  margin-bottom: 32px;
}

.extra-services__title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--font-title);
}

.extra-services__subtitle {
  font-size: 16px;
  color: #6b7280;
  font-family: var(--font-body);
}

.extra-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.extra-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 20px 16px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
}

/* ===== ПОДЧЕРКИВАНИЕ ЗАГОЛОВКОВ В ДОПОЛНИТЕЛЬНЫХ УСЛУГАХ ===== */
.extra-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: "Cabinet Grotesk", "Inter", sans-serif;
  color: #0f172a;
  position: relative;
  padding-bottom: 12px;
}

.extra-card__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #0075ff;
  border-radius: 999px;
}

.extra-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.extra-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.extra-item__info {
  max-width: 70%;
}

.extra-item__name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  font-family: var(--font-body);
}

.extra-item__desc {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
  font-family: var(--font-body);
}

.extra-item__price {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  font-family: var(--font-body);
}

.extra-services__grid--collapsible.collapsed .js-collapsible-list .extra-item:nth-child(n + 3) {
  display: none;
}

.extra-services__grid--collapsible.expanded .js-collapsible-list .extra-item {
  display: flex;
}

.extra-services__toggle-wrapper {
  margin-top: 16px;
  text-align: center;
}

.extra-list__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-family: var(--font-body);
}

.extra-list__toggle:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

/* ============================================================
   АДАПТАЦИЯ ПОД ТЕЛЕФОН
   ============================================================ */
@media (max-width: 1024px) {
  .tariffs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .tariffs-page {
    padding: 72px 0;
  }

  .tariffs-container {
    padding: 0 16px;
  }

  .tariffs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tariff-subtitle {
    display: none !important;
  }

  .tariff-card--accent {
    transform: none;
  }
  
  .tariff-card--accent:hover {
    transform: translateY(-8px);
  }

  .tariff-card {
    padding: 20px 20px 24px;
  }

  .tariff-title,
  .tariff-name {
    font-size: 20px;
  }

  .tariff-price {
    font-size: 20px;
  }

  .tariff-badge {
    top: 12px;
    right: 16px;
    font-size: 10px;
    padding: 3px 10px;
  }

  .tariff-features li {
    font-size: 14px;
  }

  .tariff-btn {
    font-size: 13px;
    padding: 10px 16px;
  }

  .section-label {
    font-size: 11px;
    padding: 0 16px;
    min-height: 30px;
  }

  .section-title {
    font-size: 24px;
  }

  .extra-services {
    padding: 40px 0;
  }
  
  .extra-services__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .extra-services__title {
    font-size: 26px;
  }

  .extra-card {
    padding: 16px;
  }

  .extra-card__title {
    font-size: 16px;
  }

  .extra-item__name {
    font-size: 13px;
  }

  .extra-item__price {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .tariffs-title {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 22px;
  }
  
  .tariff-title,
  .tariff-name {
    font-size: 18px;
  }
  
  .tariff-price {
    font-size: 18px;
  }
  
  .tariff-card {
    padding: 16px 16px 20px;
  }
  
  .tariff-badge {
    top: 10px;
    right: 12px;
    font-size: 9px;
    padding: 2px 8px;
  }

  .tariff-features li {
    font-size: 13px;
    padding-left: 16px;
  }

  .tariff-features li::before {
    font-size: 14px;
  }

  .tariff-btn {
    font-size: 12px;
    padding: 8px 14px;
  }
  
  .section-label {
    font-size: 10px;
    padding: 0 14px;
    min-height: 28px;
    letter-spacing: 0.08em;
  }

  .tariff-price-old {
    font-size: 12px;
  }

  .extra-services__title {
    font-size: 22px;
  }

  .extra-services__subtitle {
    font-size: 14px;
  }

  .extra-card__title {
    font-size: 15px;
  }

  .extra-item {
    flex-direction: column;
    gap: 4px;
  }

  .extra-item__info {
    max-width: 100%;
  }

  .extra-item__name {
    font-size: 12px;
  }

  .extra-item__price {
    font-size: 12px;
    font-weight: 700;
  }

  .extra-list__toggle {
    font-size: 12px;
    padding: 6px 14px;
  }
}

@media (max-width: 360px) {
  .tariffs-container {
    padding: 0 10px;
  }

  .tariffs-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .tariff-card {
    padding: 14px 14px 18px;
    border-radius: 18px;
  }

  .tariff-title,
  .tariff-name {
    font-size: 16px;
  }

  .tariff-price {
    font-size: 16px;
  }

  .tariff-features li {
    font-size: 12px;
    padding-left: 14px;
    margin-bottom: 4px;
  }

  .tariff-features li::before {
    font-size: 12px;
  }

  .tariff-btn {
    font-size: 11px;
    padding: 8px 12px;
    border-radius: 20px;
  }

  .section-label {
    font-size: 9px;
    padding: 0 10px;
    min-height: 24px;
  }

  .tariff-badge {
    font-size: 8px;
    padding: 2px 6px;
    top: 8px;
    right: 10px;
  }

  .tariff-price-old {
    font-size: 11px;
  }

  .tariff-subtitle {
    display: none !important;
  }
}